import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

const routes: Routes = [
  {path: '', pathMatch: 'full', redirectTo: '/auth/login'},
  {path: 'auth', loadChildren: () => import('../pages/auth/auth.module').then(m => m.AuthModule)},
  {path: 'home', loadChildren: () => import('../pages/home/home.module').then(m => m.HomeModule)},
  {path: 'user', loadChildren: () => import('../pages/user/user.module').then(m => m.UserModule)},
  {path: 'torrent', loadChildren: () => import('../pages/torrent/torrent.module').then(m => m.TorrentModule)},
  {path: 'faq', loadChildren: () => import('../pages/faq/faq.module').then(m => m.FaqModule)},
  {path: 'release', loadChildren: () => import('../pages/release/release.module').then(m => m.ReleaseModule)},
  {path: 'forum', loadChildren: () => import('../pages/forum/forum.module').then(m => m.ForumModule)},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
